package com.superteam.zzl.activity.MineActivity;

import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import com.superteam.zzl.activity.BaseActivity;
import com.superteam.zzl.activity.R;
import com.superteam.zzl.activity.databinding.ActivityRegistBinding;

public class RegistActivity extends BaseActivity {


    private ActivityRegistBinding registBinding;
    private EditText et_email,et_name,et_pwd;
    @Override
    public void widgetClick(View v) {
        Intent intent = getIntent();
        switch(v.getId()){
            case R.id.iv_close_regist://关闭当前
                setResult(500,intent);
                finish();
                break;
            case R.id.tv_real_regist://注册
                showToast("注册");
                break;
            case R.id.iv_back_regist://返回
                setResult(500,intent);
                finish();
                break;
        }
    }

    @Override
    public ViewDataBinding initDataBinding() {
        registBinding = DataBindingUtil.setContentView(this,R.layout.activity_regist);
        et_email = registBinding.etEmail;
        et_name = registBinding.etName;
        et_pwd = registBinding.etPwd;
        return registBinding;
    }

    @Override
    public void initParms(Bundle parms) {

    }

    @Override
    public View bindView() {
        return null;
    }

    @Override
    public void initView(View view) {

    }

    @Override
    public void setListener() {

    }

    @Override
    public void doBusiness(Context mContext) {

    }
}
